/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package updater_new.OnlineStatus;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import updater_new.Version;

/**
 *
 * @author Admin
 */
public class OnlineStatus {
    private Version version;
    private Boolean settingsUpdate, delOld;
    private String Changelog;

    public OnlineStatus(Version version, Boolean settingsUpdate, Boolean delOld, String Changelog) {
        this.version = version;
        this.settingsUpdate = settingsUpdate;
        this.delOld = delOld;
        this.Changelog = Changelog;
    }
    
    public OnlineStatus(String xmlFile) {
        try {
            URL txtFileUrl = new URL("http://www-user.tu-chemnitz.de/~rbs/updates/fwdisp_ver.txt");
            BufferedReader reader = new BufferedReader(new InputStreamReader(txtFileUrl.openStream()));
        } catch (IOException ex) {
            Logger.getLogger(OnlineStatus.class.getName()).log(Level.SEVERE, null, ex);
        } catch (MalformedURLException ex) {
            Logger.getLogger(OnlineStatus.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
